package domain;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author Freedy
 * @date 2020-12-24
 */
public class Users implements Serializable {

	private static final long serialVersionUID = 4838639052686269102L;
	private Integer id;

	private String email;

	private String username;

	private String password;

	private String phoneNum;

	private Integer status;
	private String statusStr;

	private List<Role> roles;

  public static long getSerialVersionUID() {
    return serialVersionUID;
  }

  public String getStatusStr() {
    if (status==0){
      statusStr="未开启";
    }else if (status==1){
      statusStr="已开启";
    }
    return statusStr;
  }

  public void setStatusStr(String statusStr) {
    this.statusStr = statusStr;
  }

  public List<Role> getRoles() {
    return roles;
  }

  public void setRoles(List<Role> roles) {
    this.roles = roles;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }


  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }


  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }


  public String getPhoneNum() {
    return phoneNum;
  }

  public void setPhoneNum(String phoneNum) {
    this.phoneNum = phoneNum;
  }


  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

}
